package com.swyc.osschat.Test.designMode.intermediary.base;

/**
 * @description 抽象同事类
 * @Author: z156940l@outlook.com
 * @className WechatUser
 * @Date: 2022/6/28 8:58
 */
public abstract class WechatUser {

    //持有中介者（群聊）
    protected Mediator mediator;

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    public String name;

    public WechatUser(String name) {
        this.name = name;
    }

    //接收
    public abstract void receive();
    //发送
    public abstract void send();
}
